// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'DeviceTransferRecondId',
        footer: "Foots",
        cnName: '设备转移记录',
        name: 'DeviceTransferRecond',
        newTabEdit: false,
        url: "/DeviceTransferRecond/",
        sortName: "DeviceTransferRecondId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillNo":"","OutDepartmentId":[],"OutUser":"","OutDeviceLocation":"","DepartmentId":[],"User":"","DeviceId":"","DeviceLocation":"","DeviceNumber":"","DeviceName":"","Spec":"","Size":"","Weight":"","EnabledDate":"","DeviceSerialNumber":"","RelatedAsset":"","RelatedMaterialName":""};
    const editFormOptions = [[{"title":"单据编号","field":"BillNo","type":"text"},
                               {"dataKey":"部门级联","data":[],"title":"原使用部门","field":"OutDepartmentId","type":"cascader"},
                               {"dataKey":"职员","data":[],"title":"原使用人","field":"OutUser","type":"select"},
                               {"title":"原设备位置","field":"OutDeviceLocation","type":"text"}],
                              [{"dataKey":"部门级联","data":[],"title":"使用部门","field":"DepartmentId","type":"cascader"},
                               {"title":"设备标识","field":"DeviceId","type":"number"},
                               {"dataKey":"职员","data":[],"title":"使用人","required":true,"field":"User","type":"select"},
                               {"title":"设备位置","required":true,"field":"DeviceLocation","type":"text"}],
                              [{"title":"设备名称","field":"DeviceName","type":"text"},
                               {"title":"规格型号","field":"Spec","type":"text"},
                               {"title":"尺寸","field":"Size","type":"text"},
                               {"title":"设备编码","required":true,"field":"DeviceNumber","type":"text"}],
                              [{"title":"重量","field":"Weight","type":"text"},
                               {"title":"启用日期","field":"EnabledDate","type":"date"},
                               {"title":"设备序列号","field":"DeviceSerialNumber","type":"text"},
                               {"title":"关联资产","field":"RelatedAsset","type":"text"}],
                              [{"title":"关联物料","field":"RelatedMaterialName","type":"text"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'DeviceTransferRecondId',title:'设备转移记录标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BillNo',title:'单据编号',type:'string',link:true,width:110,align:'left'},
                       {field:'OutDepartmentId',title:'原使用部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,align:'left'},
                       {field:'OutUser',title:'原使用人',type:'int',bind:{ key:'职员',data:[]},width:110,align:'left'},
                       {field:'OutDeviceLocation',title:'原设备位置',type:'string',width:110,align:'left'},
                       {field:'DepartmentId',title:'使用部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,align:'left'},
                       {field:'User',title:'使用人',type:'int',bind:{ key:'职员',data:[]},width:110,require:true,align:'left'},
                       {field:'DeviceId',title:'设备标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'DeviceLocation',title:'设备位置',type:'string',width:110,require:true,align:'left'},
                       {field:'DeviceNumber',title:'设备编码',type:'string',width:110,require:true,align:'left'},
                       {field:'DeviceName',title:'设备名称',type:'string',width:110,align:'left'},
                       {field:'Spec',title:'规格型号',type:'string',width:110,align:'left'},
                       {field:'Size',title:'尺寸',type:'string',width:110,align:'left'},
                       {field:'Weight',title:'重量',type:'string',width:110,align:'left'},
                       {field:'EnabledDate',title:'启用日期',type:'datetime',width:110,align:'left'},
                       {field:'DeviceSerialNumber',title:'设备序列号',type:'string',width:110,align:'left'},
                       {field:'RelatedAsset',title:'关联资产',type:'string',width:110,align:'left'},
                       {field:'RelatedMaterialId',title:'关联物料标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'RelatedMaterialName',title:'关联物料',type:'string',width:110,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}